<template>
	<div class="app-container">
		<el-table :data="teachBook" border style="width: 100%;">
			<el-table-column fixed type="selection" width="55"></el-table-column>
		    <el-table-column prop="" label="名称" width="120"></el-table-column>
		    <el-table-column prop="" label="类目" width="120"></el-table-column>
		    <el-table-column prop="" label="库存"></el-table-column>
		    <el-table-column prop="" label="购买数量"></el-table-column>
		    <el-table-column prop="" label="价格"></el-table-column>
		    <el-table-column fixed="right" label="操作" width="180">
		      <template slot-scope="scope">
		        <el-button @click="msg(scope.row)" type="primary" size="small">信息</el-button>
				<el-button @click="shopcar(scope.row)" type="warning" size="small">加入购物车</el-button>
		      </template>
		    </el-table-column>
		</el-table>
	</div>
</template>

<script>
import { queryPayLession } from '@/api/studentRecruit.js'
export default{
	data(){
		return{
			teachBook:[],  //教材
		}
	},
	created() {
		
	},
	methods:{
		msg(){
			console.log('信息');
		},
		shopcar(){
			console.log('加入购物车');
		}
	},
	props:{
		teachBook:{
			type: Array,
			default:[]
		}
	}
}
</script>

<style lang="scss">

</style>
